// DiagnosisMapper.java
package com.projects.modular.realty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.projects.modular.realty.entity.Diagnosis;
import com.projects.modular.realty.model.vo.DiagnosisQueryVo;
import com.projects.modular.realty.model.vo.DiagnosisVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 疼痛记录 Mapper 接口
 *
 * @author 曾大顺
 * @since 2025-02-11
 */
@Mapper
public interface DiagnosisMapper extends BaseMapper<Diagnosis> {

    /**
     * 根据孩子ID查询所有疼痛记录
     *
     * @param childId 孩子ID
     * @return 疼痛记录列表
     */
    List<Diagnosis> selectByChildId(@Param("childId") String childId);

    List<Diagnosis> getDiagnosisList(@Param("diagnosisQueryVo")DiagnosisQueryVo diagnosisQueryVo);
}
